package com.bjpowernode.util;

import java.io.File;

/**
 * Created whit IntelliJ IDEA.
 * Description：
 * User：ZHONGCHEN
 * Date:2022-10-28
 * Time:16:18
 */
public class FileUtils {
    /**
     * 获取本地文件的大小
     */
    public static long getFileContentLength(String path) {
        File file = new File(path);
        return file.isFile() && file.exists() ? file.length() : 0;
    }
}
